<template>
  <div class="g-wrap f-cb">
    <div class="u-title f-cb" style="padding-left: 0">
      <h3><span class="f-ff2">我的视频（2）</span></h3>
    </div>
    <ul
      class="j-flag n-favmv m-mvlist m-mvlist-1 f-cb"
    >
      <li v-for="(item , index) in mvData" :key="index">
        <div class="cover f-pr">
          <img
            :src="item.coverUrl"
          /><span title="Rise" class="msk"></span>
          <p class="tr u-msk u-msk-1">
            <span class="u-icn2 u-icn2-mv"></span>{{(item.playTime/10000).toFixed(1)}}万
          </p>
          <p class="bl u-msk u-msk-2">{{(item.durationms/1000/60).toFixed(2)}}</p>
          <a
            class="link"
            href="javascript:;"
          ></a>
        </div>
        <h4 class="title f-thide">
          <i class="tag u-icn2 u-icn2-smvtag"></i
          ><a
            href="javascript:;"
            class="s-fc0"
            >{{item.title}}</a
          >
        </h4>
        <h5 class="name f-thide">
          <span class="f-thide" 
            ><a href="javascript:;" class="s-fc3"
              >{{item.creator[0].userName}}</a
            ></span
          >
        </h5>
      </li>
    </ul>
  </div>
</template>
<script>
import {Mv} from "../../../network/login"
export default {
   data() {
       return {
           mvData:""
       }
   },
   created(){
      Mv().then(res => {
          this.mvData = res.data.data
      },err => {
          console.log("收藏的 MV 列表失败")
      })
   }
}
</script>
<style scoped>
.g-wrap {
  padding: 40px;
}
.u-title {
  height: 40px;
  border-bottom: 2px solid #c20c0c;
}
h3,h4,h5{
  padding: 0px;
  margin: 0px;
}
.u-title h3 {
  float: left;
  font-size: 24px;
  font-weight: normal;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
}
.f-ff2 {
  font-family: "Microsoft Yahei", Arial, Helvetica, sans-serif;
}
.n-favmv {
    padding-top: 11px;
}
.m-mvlist-1 {
    margin-left: -8px;
}
.m-mvlist-1 li {
    padding: 0 0 25px 8px;
}
.m-mvlist li {
    float: left;
    width: 159px;
    line-height: 1.5;
    overflow: hidden;
}
.m-mvlist .cover {
    width: 159px;
    height: 90px;
}
.f-pr {
    position: relative;
    zoom: 1;
}
.m-mvlist li img {
    width: 100%;
    height: 90px;
}
p{
    margin: 0px;
    padding: 0px;
}
.m-mvlist .tr {
    position: absolute;
    top: 0;
    right: 0;
    padding-right: 5px;
    height: 20px;
    line-height: 20px;
    color: #fff;
    box-sizing: border-box;
    text-align: right;
    text-shadow: -2px 1px rgb(0 0 0 / 40%);
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
}
.u-msk {
    display: inline-block;
    background: url("../../../assets/imgs/mask.png");
}
.u-msk-1 {
    width: 90px;
    background-position: 0 0;
}
.m-mvlist .bl {
    position: absolute;
    bottom: 0;
    left: 0;
    padding-left: 5px;
    height: 20px;
    line-height: 20px;
    color: #fff;
    text-shadow: -2px 1px rgb(0 0 0 / 40%);
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
}
.u-msk-2 {
    width: 159px;
    background-position: 0 -25px;
}
.m-mvlist .cover .link {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
}
.m-mvlist .title {
    width: 100%;
    height: auto;
    margin: 7px 0 1px;
    border: none;
    font-size: 14px;
    font-weight: normal;
}
.f-thide {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
}
.m-mvlist .title .tag {
    margin: -2px 4px auto auto;
}
.u-icn2{
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
}
.u-icn2-smvtag {
    width: 26px;
    height: 16px;
    background: url("../../../assets/imgs/icon2.png");
    background-position: -270px -480px;
}
.s-fc0, a.s-fc0:hover {
    color: #000;
}
.m-mvlist .name {
    width: 100%;
    font-weight: normal;
}
.f-thide {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
}
.s-fc3{
    color: #666;
    font-family: Arial, Helvetica, sans-serif;
}
</style>